package com.cloud.qualitycontrol.dao;

import com.cloud.qualitycontrol.model.FileFolder;
import com.cloud.qualitycontrol.model.QualityNode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Set;

public interface FileFolderRepository extends JpaRepository<FileFolder, String> {

    @Query("select f from FileFolder f where f.qualityId = ?1")
    Set<FileFolder> getByQualityId(final String qualityId);

}
